package com.tanhua.test;

import com.baidu.face.BaiduFaceTemplate;
import com.tanhua.TanhuaAppServerApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = TanhuaAppServerApplication.class)
public class BaiduFaceTemplateTest01 {

    @Autowired
    private BaiduFaceTemplate baiduFaceTemplate;

    @Test
    public void test01(){
        String image = "https://21java.oss-cn-beijing.aliyuncs.com/2024/03/21/b0c92e5c-e632-445e-9669-ccf76b6ff4e6.png";
        boolean detect = baiduFaceTemplate.detect(image);
        System.out.println(detect);
    }



}
